package com.table.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.table.annotation.ExportableAnnotation;
import com.table.dao.GenericDAO;
import com.table.entity.PostoEntity;
import com.table.util.ReflectionAnnotationLookup;

/**
 * Servlet implementation class TableExporter
 */
public class TableExporter extends HttpServlet {
	private static final long serialVersionUID = 1L;

    /**
     * Default constructor. 
     */
    public TableExporter() {
        super();
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		ReflectionAnnotationLookup.getAllEntitiesAnnotationNameValue(ExportableAnnotation.class);
		
		List<? extends Object> list = new GenericDAO().findAll(PostoEntity.class);
		
		
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

}
